package com.chen.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.DepartmentDto;
import com.chen.authority.model.po.DepartmentPo;
import com.chen.authority.model.qo.DepartmentQo;
import com.chen.authority.model.vo.DepartmentVo;

import java.util.List;

/**
 * 部门Service接口
 *
 * @author chengy
 * @date 2022-08-19
 */
public interface DepartmentService extends IService<DepartmentPo> {

    Response addOrUpdateDepartment(Integer id, DepartmentDto dto);

    Response deleteDepartmentById(Integer id);

    List<DepartmentVo> findDepartmentsByCondition(DepartmentQo qo);

}
